package com.t01.bdqn.design.proxy.stati;

import com.t01.bdqn.design.factory.student.impl.WangXin;

public class StudentSubClass extends WangXin {

    @Override
    public String getName() {

        before();
        String name = super.getName();
        after();
        return name;
    }


    public void before() {
        System.out.println("子类方法前处理");
    }

    public void after() {
        System.out.println("子类方法后处理");
    }

}
